<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript" src="/public/layui/layui.js"></script>
<body>
</body>
<script>
    layui.use("layer",function(){
        var $ = layui.jquery, layer = layui.layer;
        layer.alert("错误", {icon: 6});
    });
</script>
</html>